#!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time : 2022/6/13 14:17
# @Author : Violet
# @File : token.py
# @desc : token 返回模型
from typing import Optional, List

from pydantic import BaseModel
# ---------------------------------------------美观线-------------------------------------------------------


class Token(BaseModel):
    """登录模型"""
    token: Optional[str]
    expires_in: Optional[int]


class TokenData(BaseModel):
    sub: Optional[str] = None
    scopes: List[str] = []
